<?php
	require('Tourny/tourny_functions.php');
	dblogin();
		
	$gameid = $_GET['gameid'];

	$query = 
	'select gameid, des, num_per_team, team_per_game
	 from GAMES g
	 where g.gameid = '.$gameid;	 
	 if($result = mysql_query($query)){
		if($row = mysql_fetch_array($result)){
			$num_per_team = $row['num_per_team'];
			$team_per_game = $row['team_per_game'];
			$detail = $row['des'];
		}
	}		
?>
<div id="hov_detail" class="<?php echo $type; ?> ">
	<h1> Game Details </h1>
	<textarea> <?php echo $detail; ?></textarea>
	<label> Players/Team </label>
	<label> Teams/Game </label>
	<input type="text" value="<?php echo $num_per_team; ?>" />
	<input type="text" value="<?php echo $team_per_game; ?>" />
</div>